package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_WORK_STATION")
@Entity(name = "jrlz_WorkStation")
public class WorkStation extends StandardEntity {
    private static final long serialVersionUID = 8312564031259372739L;

    @Column(name = "WORK_STATION_NAME")
    private String workStationName;

    @Column(name = "WORK_STATION_CODE")
    private String workStationCode;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "LINE_ID")
    private Line line;

    public Line getLine() {
        return line;
    }

    public void setLine(Line line) {
        this.line = line;
    }

    public String getWorkStationCode() {
        return workStationCode;
    }

    public void setWorkStationCode(String workStationCode) {
        this.workStationCode = workStationCode;
    }

    public String getWorkStationName() {
        return workStationName;
    }

    public void setWorkStationName(String workStationName) {
        this.workStationName = workStationName;
    }
}